
import java.util.Scanner;



class   Pupil{
    private String name;
    private int age;
    private int level;



    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    private int gender;

    public Pupil() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public   void havePELesson(){
        if (level==1||level==2){
            System.out.println("体育课进行队列操练");
        }else if(level==3||level==4){
            System.out.println("体育课学习体操");
        }else{
            System.out.println("体育课进行球类练习");
        }

    }
}

public class stu {
    public static void main(String[] args) {
        Pupil[] pupils=new Pupil[5];
        String name;
        int age,level;
        int gender;
        Scanner s=new Scanner(System.in);
        int count=0;
        for(count=0;count<5;count++) {
            String info=s.nextLine();
            String[] p=info.split(",");
            name=p[0];
            age=Integer.parseInt(p[1]);
            level=Integer.parseInt(p[2]);
            if ((p[3].trim()).equals("0"))
                gender=0;
            else
                gender=1;
            pupils[count]=new Pupil(name,age,level,gender);
            for(Pupil a:pupils){
                System.out.println(a);
            }



        }
    }
}



